//
//  Detail.swift
//  SwiftUIApp
//
//  Created by HaiJun on 2021/6/22.
//

import SwiftUI

struct Detail: View {
    var landmark: Landmark
    
    var body: some View {
        VStack {
            MapView(coordinate: landmark.locationCoordinate)
                .frame(height: 300)
                .edgesIgnoringSafeArea(.top)
            CircleImage(image: landmark.image)
                .offset(x: 0, y: -130)
                .padding()
        }
    }
}

struct Detail_Previews: PreviewProvider {
    static var previews: some View {
        Detail(landmark: landmarkData[0])
    }
}
